
import request from "@/utils/request";

/* 获取最新航班列表 */
export function newFlightLit() {
    return request({
        url: '/flight/search/list/new',
        method: 'get'
    })
}

/* 获取航班列表 */
export function flightLit(params) {
    return request({
        url: '/flight/search/list',
        method: 'get',
        params
    })
}

/* 航班详情 */
export function flightDetails(dataId) {
    return request({
        url: '/flight/search/details/' + dataId,
        method: 'get'
    })
}

/* 航班详情 */
export function flightDetail(dataId) {
    return request({
        url: '/flight/search/' + dataId,
        method: 'get'
    })
}

/* 航班号列表 */
export function flightNumbers(flightNumber) {
    return request({
        url: '/flight/flight-numbers/' + flightNumber,
        method: 'get'
    })
}
